package huu.phong.sshchecker;

import java.io.IOException;
import java.io.InputStream;

public class PortInputStream extends InputStream {
	
	private int index = 0;
	
	private String command = "ls\r\n";

	@Override
	public int read() throws IOException {
		if (index == command.length()) return -1;
		return command.charAt(index++);
	}
}
